package LambdaTest;

/**
 * @author ChenYongHao
 * @date 2023/5/4 8:53
 * @desc 有参有返回值抽象方法练习
 */
interface MyInter01 {
    int show(int x, int y);
}

public class LambdaTest02 {
    public static void main(String[] args) {
        myInterShow((x, y) -> x + y);
    }

    public static void myInterShow(MyInter01 mi) {
        int show = mi.show(10, 20);
        System.out.println(show);
    }
}
